package system.controller;

import com.jfinal.aop.Duang;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Record;
import core.jfinal.ext.autoroute.ControllerBind;
import system.service.KMYEBService;
import system.service.ReportService;

import java.util.List;

/**
 * Created by Administrator on 2017/3/8.
 */
public class ReportController extends Controller{

    ReportService reportService = Duang.duang(ReportService.class);
    KMYEBService kmyebService = Duang.duang(KMYEBService.class);


    //获取资产负债表数据
    public void getReport1(){
        int period = 1;//查询第二期的资产负债表

        renderJson(reportService.getZCFZB(period));
    }

    public void getReport(){
        List<Record> report = reportService.getReport(1, 2);
        renderText("查询报表");
    }


}
